{smcl}
{txt}{sf}{ul off}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}E:\Github\Bolivia\00_replication_files\log-files/3_Table_F2.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}25 Jan 2022, 22:40:04
{txt}
{com}. 
. timer on 2
{txt}
{com}. 
. * Loading rdrobust_export, which is a program written by us to export results
. * from rdrobust
. cap program drop rdrobust_export
{txt}
{com}. include "codes/auxiliary_programs/rdrobust_export.ado"
{txt}
{com}. capture program drop rdrobust_export
{txt}
{com}. program define rdrobust_export, eclass
{txt}  1{com}. 
.         syntax anything [if] [in] [, fuzzy(string) h(string) kernel(string) file(string) ///
>                 apprep(string) vce(string) c(string) covs(string) p(string) colstring(string) bwselect(string) ///
>                 reguterm(string)]
{txt}  2{com}. 
.         preserve
{txt}  3{com}.                 tokenize "`anything'"
{txt}  4{com}.                 local dep `1'
{txt}  5{com}.                 local indep `2'
{txt}  6{com}. 
.                 *Global that will extract results from rdrobust
.                 global results "N_h_l N_h_r h_l h_r tau_cl tau_bc se_tau_cl se_tau_rb"
{txt}  7{com}. 
.                 *-----------------------*
.                 * Producing the Results *
.                 *-----------------------*
.                 * Type of kernel
.                 if "`kernel'"=="" {c -(}
{txt}  8{com}.                         local ker=""
{txt}  9{com}.                 {c )-}
{txt} 10{com}.                 else if "`kernel'"!="" {c -(}
{txt} 11{com}.                         local ker="kernel(`kernel')"
{txt} 12{com}.                 {c )-}
{txt} 13{com}. 
.                 * h bandwidth
.                 if "`h'"=="" {c -(}
{txt} 14{com}.                         local h_band=""
{txt} 15{com}.                 {c )-}
{txt} 16{com}.                 else if "`h'"!="" {c -(}
{txt} 17{com}.                         local h_band="h(`h' `h')"
{txt} 18{com}.                 {c )-}
{txt} 19{com}. 
.                 * Type of VCE
.                 if "`vce'"=="" {c -(}
{txt} 20{com}.                         local vce_type=""
{txt} 21{com}.                 {c )-}
{txt} 22{com}.                 else if "`vce'"!="" {c -(}
{txt} 23{com}.                         local vce_type="vce(`vce')"
{txt} 24{com}.                 {c )-}
{txt} 25{com}. 
.                 * c cutoff
.                 if "`c'"=="" {c -(}
{txt} 26{com}.                         local cutoff=""
{txt} 27{com}.                 {c )-}
{txt} 28{com}.                 else if "`c'"!="" {c -(}
{txt} 29{com}.                         local cutoff="c(`c')"
{txt} 30{com}.                 {c )-}
{txt} 31{com}. 
.                 * Covariates
.                 if "`covs'"=="" {c -(}
{txt} 32{com}.                         local covariates=""
{txt} 33{com}.                 {c )-}
{txt} 34{com}.                 else if "`covs'"!="" {c -(}
{txt} 35{com}.                         local covariates="covs(`covs')"
{txt} 36{com}.                 {c )-}
{txt} 37{com}. 
.                 * Polynomial order
.                 if "`p'"=="" {c -(}
{txt} 38{com}.                         local poly=""
{txt} 39{com}.                 {c )-}
{txt} 40{com}.                 else if "`p'"!="" {c -(}
{txt} 41{com}.                         local poly="p(`p')"
{txt} 42{com}.                 {c )-}
{txt} 43{com}. 
.                 * Fuzzy
.                 if "`fuzzy'"=="" {c -(}
{txt} 44{com}.                         local fuz=""
{txt} 45{com}.                 {c )-}
{txt} 46{com}.                 else if "`fuzzy'"!="" {c -(}
{txt} 47{com}.                         local fuz="fuzzy(`fuzzy')"
{txt} 48{com}.                 {c )-}
{txt} 49{com}. 
.                 * Bwselect
.                 if "`bwselect'"=="" {c -(}
{txt} 50{com}.                         local bw=""
{txt} 51{com}.                 {c )-}
{txt} 52{com}.                 else if "`bwselect'"!="" {c -(}
{txt} 53{com}.                         local bw="bwselect(`bwselect')"
{txt} 54{com}.                 {c )-}
{txt} 55{com}. 
.                 * Regularization term
.                 if "`reguterm'"=="" {c -(}
{txt} 56{com}.                         local rt=""
{txt} 57{com}.                 {c )-}
{txt} 58{com}.                 else if "`reguterm'"!="" {c -(}
{txt} 59{com}.                         local rt="scaleregul(0)"
{txt} 60{com}.                 {c )-}
{txt} 61{com}. 
.                 *Estimating
.                 rdrobust `dep' `indep' `if', ///
>                         all `fuz' `ker' `h_band' `vce_type' `cutoff' `covariates' `poly' `bw' `rt'
{txt} 62{com}. 
.                 *Extracting results
.                 foreach x of global results {c -(}
{txt} 63{com}.                         local `x'_res=e(`x')
{txt} 64{com}.                 {c )-}
{txt} 65{com}. 
.                 *-------------------------*
.                 * Constructing the Tables *
.                 *-------------------------*
.                 clear
{txt} 66{com}.                 set obs 1
{txt} 67{com}. 
.                 * Filling the table
.                 foreach b in estim band_l band_r conv_pv conv_ci_low conv_ci_high rob_pv rob_ci_low rob_ci_high obs_l obs_r obs {c -(}
{txt} 68{com}.                         gen `b'=.
{txt} 69{com}.                 {c )-}
{txt} 70{com}. 
.                 replace estim=`tau_cl_res'
{txt} 71{com}. 
.                 replace band_l=`h_l_res'
{txt} 72{com}.                 replace band_r=`h_r_res'
{txt} 73{com}. 
.                 replace conv_pv=2*normal(-abs(`tau_cl_res'/`se_tau_cl_res'))
{txt} 74{com}.                 replace conv_ci_low=`tau_cl_res'-invnormal(0.975)*`se_tau_cl_res'
{txt} 75{com}.                 replace conv_ci_high=`tau_cl_res'+invnormal(0.975)*`se_tau_cl_res'
{txt} 76{com}. 
.                 replace rob_pv=2*normal(-abs(`tau_bc_res'/`se_tau_rb_res'))
{txt} 77{com}.                 replace rob_ci_low=`tau_bc_res'-invnormal(0.975)*`se_tau_rb_res'
{txt} 78{com}.                 replace rob_ci_high=`tau_bc_res'+invnormal(0.975)*`se_tau_rb_res'
{txt} 79{com}. 
.                 replace obs_l=`N_h_l_res'
{txt} 80{com}.                 replace obs_r=`N_h_r_res'
{txt} 81{com}.                 replace obs=`N_h_l_res'+`N_h_r_res'
{txt} 82{com}. 
.                 if "`colstring'"!="" {c -(}
{txt} 83{com}.                         gen colstring="`colstring'"
{txt} 84{com}.                 {c )-}
{txt} 85{com}. 
.                 save "tempfile.dta", replace
{txt} 86{com}.                 
.                 *--------------------------------*
.                 * Appending or replacing to save *
.                 *--------------------------------*
.                 if "`apprep'"=="replace" {c -(}
{txt} 87{com}.                         erase "tempfile.dta"
{txt} 88{com}.                 {c )-}
{txt} 89{com}.                 else if "`apprep'"=="append" {c -(}
{txt} 90{com}.                         use "`file'.dta", clear
{txt} 91{com}. 
.                         append using "tempfile.dta"
{txt} 92{com}.                         erase "tempfile.dta"
{txt} 93{com}.                 {c )-}
{txt} 94{com}. 
.                 save "`file'.dta", replace
{txt} 95{com}.         restore
{txt} 96{com}. end
{txt}
{com}. {txt}
{com}. 
. * Loading myround, which is a program written by us to round numbers
. cap program drop myround
{txt}
{com}. include "codes/auxiliary_programs/myround.ado"
{txt}
{com}. capture program drop myround
{txt}
{com}. program define myround, eclass
{txt}  1{com}.         syntax varlist (min=1 max=1 numeric), decimals(numlist min=1 max=1)
{txt}  2{com}.         
.         tokenize `varlist'
{txt}  3{com}.         local var "`1'"
{txt}  4{com}.         
.         tostring `var', gen(temp_str) force
{txt}  5{com}. 
.         replace temp_str="0.00000" if strpos(temp_str,"e-")>0 & substr(temp_str,1,1)!="-"
{txt}  6{com}.         replace temp_str="-0.00000" if strpos(temp_str,"e-")>0 & substr(temp_str,1,1)=="-"
{txt}  7{com}.         
.         split temp_str, p(".")
{txt}  8{com}.         local nv=r(nvars)
{txt}  9{com}.         if `nv'>1 {c -(}
{txt} 10{com}.                 replace temp_str1="0" if temp_str1==""
{txt} 11{com}.                 replace temp_str1="-0" if temp_str1=="-"
{txt} 12{com}.                 
.                 local flag=0
{txt} 13{com}.                 while `flag'==0 {c -(}
{txt} 14{com}.                         cap drop length2
{txt} 15{com}.                         gen length2=length(temp_str2)
{txt} 16{com}.                         replace temp_str2=temp_str2+"0" if length2<`decimals'+1
{txt} 17{com}.                         
.                         drop length2
{txt} 18{com}.                         gen length2=length(temp_str2)
{txt} 19{com}.                         quietly sum length2
{txt} 20{com}.                         local min=r(min)-1
{txt} 21{com}.                         if `min'>=`decimals' {c -(}
{txt} 22{com}.                                 local flag=1
{txt} 23{com}.                         {c )-}
{txt} 24{com}.                 {c )-}
{txt} 25{com}.                 cap drop length2
{txt} 26{com}.                 
.                 gen var_first_tpositions=substr(temp_str2,1,`decimals')
{txt} 27{com}.                 local t=`decimals'+1
{txt} 28{com}.                 gen var_tthpos=substr(temp_str2,`t',1)
{txt} 29{com}.                 destring var_first_tpositions var_tthpos, force replace
{txt} 30{com}.                 replace var_first_tpositions=var_first_tpositions+1 if var_tthpos>=5
{txt} 31{com}.                 replace var_first_tpositions=var_first_tpositions+0 if var_tthpos<5
{txt} 32{com}.                 
.                 tostring var_first_tpositions, force replace
{txt} 33{com}.                 local flag=0
{txt} 34{com}.                 while `flag'==0 {c -(}
{txt} 35{com}.                         cap drop length1
{txt} 36{com}.                         gen length1=length(var_first_tpositions)
{txt} 37{com}.                         replace var_first_tpositions="0"+var_first_tpositions if length1<`decimals'
{txt} 38{com}.                         
.                         cap drop length1
{txt} 39{com}.                         gen length1=length(var_first_tpositions)
{txt} 40{com}.                         quietly sum length1
{txt} 41{com}.                         local min=r(min)
{txt} 42{com}.                         if `min'>=`decimals' {c -(}
{txt} 43{com}.                                 local flag=1
{txt} 44{com}.                         {c )-}
{txt} 45{com}.                 {c )-}
{txt} 46{com}.                 cap drop length1
{txt} 47{com}.                 
.                 rename `var' vv
{txt} 48{com}.                 gen `var'=temp_str1+"."+var_first_tpositions
{txt} 49{com}.                 drop temp_str* var_first_tpositions var_tthpos
{txt} 50{com}.                 replace `var'="" if vv==.
{txt} 51{com}.                 drop vv
{txt} 52{com}.         {c )-}
{txt} 53{com}.         else {c -(}
{txt} 54{com}.                 tostring `var', force replace
{txt} 55{com}.                 drop temp*
{txt} 56{com}.         {c )-}
{txt} 57{com}. end
{txt}
{com}. {txt}
{com}. 
. *-----------*
. * Table F.2 *
. *-----------*
.         * Cutoff 2, Table 1. Robustness checks (different poly. degrees, regu. term, etc.)
.         *---------------------------------------------------------------------------------
.         use "data/outputs/computo_verificadortrepdate_nomissings.dta", clear
{txt}
{com}. 
.         gen row = 1
{txt}
{com}.         merge m:1 row using "data/outputs/RD_sortings_mediandraw.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               1
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}               1{txt}  (_merge==2)

{col 5}matched{col 30}{res}          33,044{txt}  (_merge==3)
{col 5}{hline 41}

{com}.         drop if _merge == 2
{txt}(1 observation deleted)

{com}.         drop _merge row
{txt}
{com}. 
.         merge 1:1 NumMesa sorting using "data/outputs/randomdraws_rd.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}          33,044
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}          33,044{txt}  (_merge==2)

{col 5}matched{col 30}{res}          33,044{txt}  (_merge==3)
{col 5}{hline 41}

{com}.         drop if _merge == 2
{txt}(33,044 observations deleted)

{com}.         drop _merge sorting
{txt}
{com}. 
.         keep Pais-Nulos trep_date_verificador random_draw
{txt}
{com}. 
.         * Measures that DO USE Blancos and Nulos (sorted)
.         gen total_so = CC + FPV + MTS + UCS + MAS + F + PDC + MNR + PANBOL + ///
>                 Blancos + Nulos
{txt}
{com}.         *---*
.         gen mshare_so = MAS / total_so
{txt}(2 missing values generated)

{com}.         gen cshare_so = CC / total_so
{txt}(2 missing values generated)

{com}.         sort trep_date_verificador random_draw
{txt}
{com}.         gen cumsumtotal_so = sum(total_so)
{txt}
{com}.         *---*
.         egen maxcumsumtotal_so = max(cumsumtotal_so)
{txt}
{com}.         gen pcs_so = cumsumtotal_so / maxcumsumtotal_so
{txt}
{com}.         drop cumsumtotal_so maxcumsumtotal_so
{txt}
{com}. 
.         sum pcs if trep_date_verificador >= tc(20oct2019 19:40:57)

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}pcs_so {c |}{res}      3,612    .9451156    .0322035   .8886026          1
{txt}
{com}.         local cutoff = r(min)
{txt}
{com}. 
.         * Generating a variable to cluster at the precinct level
.         egen reci_id = group(Pais Dep Prov Muni Loc Reci)
{txt}
{com}.                 /* Note, in constructing the data set we made a correction
>                 such that recinto names are unique within localities. */
. 
.         * p=1, regularization term=1 (default)
.         rdrobust mshare pcs, c(`cutoff') vce(cluster reci_id)
{res}
Sharp RD estimates using local polynomial regression.

{txt}{ralign 18: Cutoff c = .888602614402771}{col 19} {c |} {col 21}Left of {res}c{col 33}{txt}Right of {res}c{col 55}{txt}Number of obs = {res}     33042
{txt}{hline 19}{c +}{hline 22}{col 55}BW type       = {res}{ralign 10:mserd}
{txt}{ralign 18:Number of obs}{col 19} {c |} {col 21}{res}    29430{col 34}     3612{col 55}{txt}Kernel        = {res}{ralign 10:Triangular}
{txt}{ralign 18:Eff. Number of obs}{col 19} {c |} {col 21}{res}     1248{col 34}     1245{col 55}{txt}VCE method    = {res}{ralign 10:Cluster}
{txt}{ralign 18:Order est. (p)}{col 19} {c |} {col 21}{res}        1{col 34}        1
{txt}{ralign 18:Order bias (q)}{col 19} {c |} {col 21}{res}        2{col 34}        2
{txt}{ralign 18:BW est. (h)}{col 19} {c |} {col 21}{res}    0.039{col 34}    0.039
{txt}{ralign 18:BW bias (b)}{col 19} {c |} {col 21}{res}    0.056{col 34}    0.056
{txt}{ralign 18:rho (h/b)}{col 19} {c |} {col 21}{res}    0.705{col 34}    0.705
{txt}{ralign 18:Number of clusters}{col 19} {c |} {col 21}{res}      957{col 34}      789

Outcome: mshare. Running variable: pcs.
{txt}{hline 19}{c TT}{hline 60}
{ralign 18:Method}{col 19} {c |} {col 24}Coef.{col 33}Std. Err.{col 46}z{col 52}P>|z|{col 61}[95% Conf. Interval]
{hline 19}{c +}{hline 60}
{ralign 18:Conventional}{col 19} {c |} {col 22}{res}  -.018{col 33} .02408{col 43}-0.7475{col 52}0.455{col 60}-.065193{col 73} .029193
{txt}{ralign 18:Robust}{col 19} {c |} {col 22}{res}    -{col 33}    -{col 43}-0.3576{col 52}0.721{col 60}-.064963{col 73} .044917
{txt}{hline 19}{c BT}{hline 60}
Std. Err. adjusted for clusters in reci_id

{com}.         rdrobust_export mshare pcs, ///
>                 c("`cutoff'") apprep("replace") file("outputs/generated/Table_F2") ///
>                 colstring("Cutoff `cutoff' - Time 10 20 2019 19 40 57 - p=1 - regterm=1") ///
>                 vce(cluster reci_id)
{res}
Sharp RD estimates using local polynomial regression.

{txt}{ralign 18: Cutoff c = .888602614402771}{col 19} {c |} {col 21}Left of {res}c{col 33}{txt}Right of {res}c{col 55}{txt}Number of obs = {res}     33042
{txt}{hline 19}{c +}{hline 22}{col 55}BW type       = {res}{ralign 10:mserd}
{txt}{ralign 18:Number of obs}{col 19} {c |} {col 21}{res}    29430{col 34}     3612{col 55}{txt}Kernel        = {res}{ralign 10:Triangular}
{txt}{ralign 18:Eff. Number of obs}{col 19} {c |} {col 21}{res}     1248{col 34}     1245{col 55}{txt}VCE method    = {res}{ralign 10:Cluster}
{txt}{ralign 18:Order est. (p)}{col 19} {c |} {col 21}{res}        1{col 34}        1
{txt}{ralign 18:Order bias (q)}{col 19} {c |} {col 21}{res}        2{col 34}        2
{txt}{ralign 18:BW est. (h)}{col 19} {c |} {col 21}{res}    0.039{col 34}    0.039
{txt}{ralign 18:BW bias (b)}{col 19} {c |} {col 21}{res}    0.056{col 34}    0.056
{txt}{ralign 18:rho (h/b)}{col 19} {c |} {col 21}{res}    0.705{col 34}    0.705
{txt}{ralign 18:Number of clusters}{col 19} {c |} {col 21}{res}      957{col 34}      789

Outcome: mshare. Running variable: pcs.
{txt}{hline 19}{c TT}{hline 60}
{ralign 18:Method}{col 19} {c |} {col 24}Coef.{col 33}Std. Err.{col 46}z{col 52}P>|z|{col 61}[95% Conf. Interval]
{hline 19}{c +}{hline 60}
{ralign 18:Conventional}{col 19} {c |} {col 22}{res}  -.018{col 33} .02408{col 43}-0.7475{col 52}0.455{col 60}-.065193{col 73} .029193
{txt}{ralign 18:Bias-corrected}{col 19} {c |} {col 22}{res}-.01002{col 33} .02408{col 43}-0.4163{col 52}0.677{col 60}-.057216{col 73}  .03717
{txt}{ralign 18:Robust}{col 19} {c |} {col 22}{res}-.01002{col 33} .02803{col 43}-0.3576{col 52}0.721{col 60}-.064963{col 73} .044917
{txt}{hline 19}{c BT}{hline 60}
Std. Err. adjusted for clusters in reci_id
{p}
number of observations (_N)  was 0,
now 1
{p_end}
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(note: file tempfile.dta not found)
file tempfile.dta saved
(note: file outputs/generated/Table_F2.dta not found)
file outputs/generated/Table_F2.dta saved

{com}. 
.         * p=2, regularization term=1 (default)
.         rdrobust mshare pcs, p(2) c(`cutoff') vce(cluster reci_id)
{res}
Sharp RD estimates using local polynomial regression.

{txt}{ralign 18: Cutoff c = .888602614402771}{col 19} {c |} {col 21}Left of {res}c{col 33}{txt}Right of {res}c{col 55}{txt}Number of obs = {res}     33042
{txt}{hline 19}{c +}{hline 22}{col 55}BW type       = {res}{ralign 10:mserd}
{txt}{ralign 18:Number of obs}{col 19} {c |} {col 21}{res}    29430{col 34}     3612{col 55}{txt}Kernel        = {res}{ralign 10:Triangular}
{txt}{ralign 18:Eff. Number of obs}{col 19} {c |} {col 21}{res}     1496{col 34}     1496{col 55}{txt}VCE method    = {res}{ralign 10:Cluster}
{txt}{ralign 18:Order est. (p)}{col 19} {c |} {col 21}{res}        2{col 34}        2
{txt}{ralign 18:Order bias (q)}{col 19} {c |} {col 21}{res}        3{col 34}        3
{txt}{ralign 18:BW est. (h)}{col 19} {c |} {col 21}{res}    0.047{col 34}    0.047
{txt}{ralign 18:BW bias (b)}{col 19} {c |} {col 21}{res}    0.064{col 34}    0.064
{txt}{ralign 18:rho (h/b)}{col 19} {c |} {col 21}{res}    0.735{col 34}    0.735
{txt}{ralign 18:Number of clusters}{col 19} {c |} {col 21}{res}     1071{col 34}      852

Outcome: mshare. Running variable: pcs.
{txt}{hline 19}{c TT}{hline 60}
{ralign 18:Method}{col 19} {c |} {col 24}Coef.{col 33}Std. Err.{col 46}z{col 52}P>|z|{col 61}[95% Conf. Interval]
{hline 19}{c +}{hline 60}
{ralign 18:Conventional}{col 19} {c |} {col 22}{res}-.00595{col 33}  .0301{col 43}-0.1976{col 52}0.843{col 60}-.064949{col 73} .053053
{txt}{ralign 18:Robust}{col 19} {c |} {col 22}{res}    -{col 33}    -{col 43}0.1029{col 52}0.918{col 60}-.061818{col 73} .068672
{txt}{hline 19}{c BT}{hline 60}
Std. Err. adjusted for clusters in reci_id

{com}.         rdrobust_export mshare pcs, ///
>                 c("`cutoff'") apprep("append") file("outputs/generated/Table_F2") ///
>                 colstring("Cutoff `cutoff' - Time 10 20 2019 19 40 57 - p=2 - regterm=1") ///
>                 vce(cluster reci_id) p(2)
{res}
Sharp RD estimates using local polynomial regression.

{txt}{ralign 18: Cutoff c = .888602614402771}{col 19} {c |} {col 21}Left of {res}c{col 33}{txt}Right of {res}c{col 55}{txt}Number of obs = {res}     33042
{txt}{hline 19}{c +}{hline 22}{col 55}BW type       = {res}{ralign 10:mserd}
{txt}{ralign 18:Number of obs}{col 19} {c |} {col 21}{res}    29430{col 34}     3612{col 55}{txt}Kernel        = {res}{ralign 10:Triangular}
{txt}{ralign 18:Eff. Number of obs}{col 19} {c |} {col 21}{res}     1496{col 34}     1496{col 55}{txt}VCE method    = {res}{ralign 10:Cluster}
{txt}{ralign 18:Order est. (p)}{col 19} {c |} {col 21}{res}        2{col 34}        2
{txt}{ralign 18:Order bias (q)}{col 19} {c |} {col 21}{res}        3{col 34}        3
{txt}{ralign 18:BW est. (h)}{col 19} {c |} {col 21}{res}    0.047{col 34}    0.047
{txt}{ralign 18:BW bias (b)}{col 19} {c |} {col 21}{res}    0.064{col 34}    0.064
{txt}{ralign 18:rho (h/b)}{col 19} {c |} {col 21}{res}    0.735{col 34}    0.735
{txt}{ralign 18:Number of clusters}{col 19} {c |} {col 21}{res}     1071{col 34}      852

Outcome: mshare. Running variable: pcs.
{txt}{hline 19}{c TT}{hline 60}
{ralign 18:Method}{col 19} {c |} {col 24}Coef.{col 33}Std. Err.{col 46}z{col 52}P>|z|{col 61}[95% Conf. Interval]
{hline 19}{c +}{hline 60}
{ralign 18:Conventional}{col 19} {c |} {col 22}{res}-.00595{col 33}  .0301{col 43}-0.1976{col 52}0.843{col 60}-.064949{col 73} .053053
{txt}{ralign 18:Bias-corrected}{col 19} {c |} {col 22}{res} .00343{col 33}  .0301{col 43}0.1138{col 52}0.909{col 60}-.055574{col 73} .062427
{txt}{ralign 18:Robust}{col 19} {c |} {col 22}{res} .00343{col 33} .03329{col 43}0.1029{col 52}0.918{col 60}-.061818{col 73} .068672
{txt}{hline 19}{c BT}{hline 60}
Std. Err. adjusted for clusters in reci_id
{p}
number of observations (_N)  was 0,
now 1
{p_end}
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(note: file tempfile.dta not found)
file tempfile.dta saved
file outputs/generated/Table_F2.dta saved

{com}. 
.         * p=3, regularization term=1 (default)
.         rdrobust mshare pcs, p(3) c(`cutoff') vce(cluster reci_id)
{res}
Sharp RD estimates using local polynomial regression.

{txt}{ralign 18: Cutoff c = .888602614402771}{col 19} {c |} {col 21}Left of {res}c{col 33}{txt}Right of {res}c{col 55}{txt}Number of obs = {res}     33042
{txt}{hline 19}{c +}{hline 22}{col 55}BW type       = {res}{ralign 10:mserd}
{txt}{ralign 18:Number of obs}{col 19} {c |} {col 21}{res}    29430{col 34}     3612{col 55}{txt}Kernel        = {res}{ralign 10:Triangular}
{txt}{ralign 18:Eff. Number of obs}{col 19} {c |} {col 21}{res}     1434{col 34}     1434{col 55}{txt}VCE method    = {res}{ralign 10:Cluster}
{txt}{ralign 18:Order est. (p)}{col 19} {c |} {col 21}{res}        3{col 34}        3
{txt}{ralign 18:Order bias (q)}{col 19} {c |} {col 21}{res}        4{col 34}        4
{txt}{ralign 18:BW est. (h)}{col 19} {c |} {col 21}{res}    0.045{col 34}    0.045
{txt}{ralign 18:BW bias (b)}{col 19} {c |} {col 21}{res}    0.063{col 34}    0.063
{txt}{ralign 18:rho (h/b)}{col 19} {c |} {col 21}{res}    0.718{col 34}    0.718
{txt}{ralign 18:Number of clusters}{col 19} {c |} {col 21}{res}     1055{col 34}      844

Outcome: mshare. Running variable: pcs.
{txt}{hline 19}{c TT}{hline 60}
{ralign 18:Method}{col 19} {c |} {col 24}Coef.{col 33}Std. Err.{col 46}z{col 52}P>|z|{col 61}[95% Conf. Interval]
{hline 19}{c +}{hline 60}
{ralign 18:Conventional}{col 19} {c |} {col 22}{res}-.05066{col 33}  .0385{col 43}-1.3157{col 52}0.188{col 60}-.126126{col 73} .024804
{txt}{ralign 18:Robust}{col 19} {c |} {col 22}{res}    -{col 33}    -{col 43}-1.5321{col 52}0.125{col 60}-.143459{col 73} .017576
{txt}{hline 19}{c BT}{hline 60}
Std. Err. adjusted for clusters in reci_id

{com}.         rdrobust_export mshare pcs, ///
>                 c("`cutoff'") apprep("append") file("outputs/generated/Table_F2") ///
>                 colstring("Cutoff `cutoff' - Time 10 20 2019 19 40 57 - p=3 - regterm=1") ///
>                 vce(cluster reci_id) p(3)
{res}
Sharp RD estimates using local polynomial regression.

{txt}{ralign 18: Cutoff c = .888602614402771}{col 19} {c |} {col 21}Left of {res}c{col 33}{txt}Right of {res}c{col 55}{txt}Number of obs = {res}     33042
{txt}{hline 19}{c +}{hline 22}{col 55}BW type       = {res}{ralign 10:mserd}
{txt}{ralign 18:Number of obs}{col 19} {c |} {col 21}{res}    29430{col 34}     3612{col 55}{txt}Kernel        = {res}{ralign 10:Triangular}
{txt}{ralign 18:Eff. Number of obs}{col 19} {c |} {col 21}{res}     1434{col 34}     1434{col 55}{txt}VCE method    = {res}{ralign 10:Cluster}
{txt}{ralign 18:Order est. (p)}{col 19} {c |} {col 21}{res}        3{col 34}        3
{txt}{ralign 18:Order bias (q)}{col 19} {c |} {col 21}{res}        4{col 34}        4
{txt}{ralign 18:BW est. (h)}{col 19} {c |} {col 21}{res}    0.045{col 34}    0.045
{txt}{ralign 18:BW bias (b)}{col 19} {c |} {col 21}{res}    0.063{col 34}    0.063
{txt}{ralign 18:rho (h/b)}{col 19} {c |} {col 21}{res}    0.718{col 34}    0.718
{txt}{ralign 18:Number of clusters}{col 19} {c |} {col 21}{res}     1055{col 34}      844

Outcome: mshare. Running variable: pcs.
{txt}{hline 19}{c TT}{hline 60}
{ralign 18:Method}{col 19} {c |} {col 24}Coef.{col 33}Std. Err.{col 46}z{col 52}P>|z|{col 61}[95% Conf. Interval]
{hline 19}{c +}{hline 60}
{ralign 18:Conventional}{col 19} {c |} {col 22}{res}-.05066{col 33}  .0385{col 43}-1.3157{col 52}0.188{col 60}-.126126{col 73} .024804
{txt}{ralign 18:Bias-corrected}{col 19} {c |} {col 22}{res}-.06294{col 33}  .0385{col 43}-1.6347{col 52}0.102{col 60}-.138407{col 73} .012524
{txt}{ralign 18:Robust}{col 19} {c |} {col 22}{res}-.06294{col 33} .04108{col 43}-1.5321{col 52}0.125{col 60}-.143459{col 73} .017576
{txt}{hline 19}{c BT}{hline 60}
Std. Err. adjusted for clusters in reci_id
{p}
number of observations (_N)  was 0,
now 1
{p_end}
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(note: file tempfile.dta not found)
file tempfile.dta saved
file outputs/generated/Table_F2.dta saved

{com}. 
.         *---*
.         * p=1, regularization term=0
.         rdrobust mshare pcs, c(`cutoff') vce(cluster reci_id) scaleregul(0)
{res}
Sharp RD estimates using local polynomial regression.

{txt}{ralign 18: Cutoff c = .888602614402771}{col 19} {c |} {col 21}Left of {res}c{col 33}{txt}Right of {res}c{col 55}{txt}Number of obs = {res}     33042
{txt}{hline 19}{c +}{hline 22}{col 55}BW type       = {res}{ralign 10:mserd}
{txt}{ralign 18:Number of obs}{col 19} {c |} {col 21}{res}    29430{col 34}     3612{col 55}{txt}Kernel        = {res}{ralign 10:Triangular}
{txt}{ralign 18:Eff. Number of obs}{col 19} {c |} {col 21}{res}     2996{col 34}     3078{col 55}{txt}VCE method    = {res}{ralign 10:Cluster}
{txt}{ralign 18:Order est. (p)}{col 19} {c |} {col 21}{res}        1{col 34}        1
{txt}{ralign 18:Order bias (q)}{col 19} {c |} {col 21}{res}        2{col 34}        2
{txt}{ralign 18:BW est. (h)}{col 19} {c |} {col 21}{res}    0.095{col 34}    0.095
{txt}{ralign 18:BW bias (b)}{col 19} {c |} {col 21}{res}    0.062{col 34}    0.062
{txt}{ralign 18:rho (h/b)}{col 19} {c |} {col 21}{res}    1.529{col 34}    1.529
{txt}{ralign 18:Number of clusters}{col 19} {c |} {col 21}{res}     1390{col 34}     1137

Outcome: mshare. Running variable: pcs.
{txt}{hline 19}{c TT}{hline 60}
{ralign 18:Method}{col 19} {c |} {col 24}Coef.{col 33}Std. Err.{col 46}z{col 52}P>|z|{col 61}[95% Conf. Interval]
{hline 19}{c +}{hline 60}
{ralign 18:Conventional}{col 19} {c |} {col 22}{res}-.02488{col 33} .01825{col 43}-1.3630{col 52}0.173{col 60}-.060656{col 73} .010897
{txt}{ralign 18:Robust}{col 19} {c |} {col 22}{res}    -{col 33}    -{col 43}-0.4334{col 52}0.665{col 60}-.086943{col 73} .055455
{txt}{hline 19}{c BT}{hline 60}
Std. Err. adjusted for clusters in reci_id
Scale regularization: 0

{com}.         rdrobust_export mshare pcs, ///
>                 c("`cutoff'") apprep("append") file("outputs/generated/Table_F2") ///
>                 colstring("Cutoff `cutoff' - Time 10 20 2019 19 40 57 - p=1 - regterm=0") ///
>                 vce(cluster reci_id) reguterm("no")
{res}
Sharp RD estimates using local polynomial regression.

{txt}{ralign 18: Cutoff c = .888602614402771}{col 19} {c |} {col 21}Left of {res}c{col 33}{txt}Right of {res}c{col 55}{txt}Number of obs = {res}     33042
{txt}{hline 19}{c +}{hline 22}{col 55}BW type       = {res}{ralign 10:mserd}
{txt}{ralign 18:Number of obs}{col 19} {c |} {col 21}{res}    29430{col 34}     3612{col 55}{txt}Kernel        = {res}{ralign 10:Triangular}
{txt}{ralign 18:Eff. Number of obs}{col 19} {c |} {col 21}{res}     2996{col 34}     3078{col 55}{txt}VCE method    = {res}{ralign 10:Cluster}
{txt}{ralign 18:Order est. (p)}{col 19} {c |} {col 21}{res}        1{col 34}        1
{txt}{ralign 18:Order bias (q)}{col 19} {c |} {col 21}{res}        2{col 34}        2
{txt}{ralign 18:BW est. (h)}{col 19} {c |} {col 21}{res}    0.095{col 34}    0.095
{txt}{ralign 18:BW bias (b)}{col 19} {c |} {col 21}{res}    0.062{col 34}    0.062
{txt}{ralign 18:rho (h/b)}{col 19} {c |} {col 21}{res}    1.529{col 34}    1.529
{txt}{ralign 18:Number of clusters}{col 19} {c |} {col 21}{res}     1390{col 34}     1137

Outcome: mshare. Running variable: pcs.
{txt}{hline 19}{c TT}{hline 60}
{ralign 18:Method}{col 19} {c |} {col 24}Coef.{col 33}Std. Err.{col 46}z{col 52}P>|z|{col 61}[95% Conf. Interval]
{hline 19}{c +}{hline 60}
{ralign 18:Conventional}{col 19} {c |} {col 22}{res}-.02488{col 33} .01825{col 43}-1.3630{col 52}0.173{col 60}-.060656{col 73} .010897
{txt}{ralign 18:Bias-corrected}{col 19} {c |} {col 22}{res}-.01574{col 33} .01825{col 43}-0.8625{col 52}0.388{col 60}-.051521{col 73} .020032
{txt}{ralign 18:Robust}{col 19} {c |} {col 22}{res}-.01574{col 33} .03633{col 43}-0.4334{col 52}0.665{col 60}-.086943{col 73} .055455
{txt}{hline 19}{c BT}{hline 60}
Std. Err. adjusted for clusters in reci_id
Scale regularization: 0
{p}
number of observations (_N)  was 0,
now 1
{p_end}
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(note: file tempfile.dta not found)
file tempfile.dta saved
file outputs/generated/Table_F2.dta saved

{com}. 
.         * p=2, regularization term=0
.         rdrobust mshare pcs, p(2) c(`cutoff') vce(cluster reci_id) scaleregul(0)
{res}
Sharp RD estimates using local polynomial regression.

{txt}{ralign 18: Cutoff c = .888602614402771}{col 19} {c |} {col 21}Left of {res}c{col 33}{txt}Right of {res}c{col 55}{txt}Number of obs = {res}     33042
{txt}{hline 19}{c +}{hline 22}{col 55}BW type       = {res}{ralign 10:mserd}
{txt}{ralign 18:Number of obs}{col 19} {c |} {col 21}{res}    29430{col 34}     3612{col 55}{txt}Kernel        = {res}{ralign 10:Triangular}
{txt}{ralign 18:Eff. Number of obs}{col 19} {c |} {col 21}{res}     3661{col 34}     3612{col 55}{txt}VCE method    = {res}{ralign 10:Cluster}
{txt}{ralign 18:Order est. (p)}{col 19} {c |} {col 21}{res}        2{col 34}        2
{txt}{ralign 18:Order bias (q)}{col 19} {c |} {col 21}{res}        3{col 34}        3
{txt}{ralign 18:BW est. (h)}{col 19} {c |} {col 21}{res}    0.117{col 34}    0.117
{txt}{ralign 18:BW bias (b)}{col 19} {c |} {col 21}{res}    0.083{col 34}    0.083
{txt}{ralign 18:rho (h/b)}{col 19} {c |} {col 21}{res}    1.400{col 34}    1.400
{txt}{ralign 18:Number of clusters}{col 19} {c |} {col 21}{res}     1562{col 34}     1225

Outcome: mshare. Running variable: pcs.
{txt}{hline 19}{c TT}{hline 60}
{ralign 18:Method}{col 19} {c |} {col 24}Coef.{col 33}Std. Err.{col 46}z{col 52}P>|z|{col 61}[95% Conf. Interval]
{hline 19}{c +}{hline 60}
{ralign 18:Conventional}{col 19} {c |} {col 22}{res}-.04824{col 33} .02204{col 43}-2.1886{col 52}0.029{col 60}-.091434{col 73}-.005039
{txt}{ralign 18:Robust}{col 19} {c |} {col 22}{res}    -{col 33}    -{col 43}-1.3595{col 52}0.174{col 60}-.137874{col 73} .024942
{txt}{hline 19}{c BT}{hline 60}
Std. Err. adjusted for clusters in reci_id
Scale regularization: 0

{com}.         rdrobust_export mshare pcs, ///
>                 c("`cutoff'") apprep("append") file("outputs/generated/Table_F2") ///
>                 colstring("Cutoff `cutoff' - Time 10 20 2019 19 40 57 - p=2 - regterm=0") ///
>                 vce(cluster reci_id) reguterm("no") p(2)
{res}
Sharp RD estimates using local polynomial regression.

{txt}{ralign 18: Cutoff c = .888602614402771}{col 19} {c |} {col 21}Left of {res}c{col 33}{txt}Right of {res}c{col 55}{txt}Number of obs = {res}     33042
{txt}{hline 19}{c +}{hline 22}{col 55}BW type       = {res}{ralign 10:mserd}
{txt}{ralign 18:Number of obs}{col 19} {c |} {col 21}{res}    29430{col 34}     3612{col 55}{txt}Kernel        = {res}{ralign 10:Triangular}
{txt}{ralign 18:Eff. Number of obs}{col 19} {c |} {col 21}{res}     3661{col 34}     3612{col 55}{txt}VCE method    = {res}{ralign 10:Cluster}
{txt}{ralign 18:Order est. (p)}{col 19} {c |} {col 21}{res}        2{col 34}        2
{txt}{ralign 18:Order bias (q)}{col 19} {c |} {col 21}{res}        3{col 34}        3
{txt}{ralign 18:BW est. (h)}{col 19} {c |} {col 21}{res}    0.117{col 34}    0.117
{txt}{ralign 18:BW bias (b)}{col 19} {c |} {col 21}{res}    0.083{col 34}    0.083
{txt}{ralign 18:rho (h/b)}{col 19} {c |} {col 21}{res}    1.400{col 34}    1.400
{txt}{ralign 18:Number of clusters}{col 19} {c |} {col 21}{res}     1562{col 34}     1225

Outcome: mshare. Running variable: pcs.
{txt}{hline 19}{c TT}{hline 60}
{ralign 18:Method}{col 19} {c |} {col 24}Coef.{col 33}Std. Err.{col 46}z{col 52}P>|z|{col 61}[95% Conf. Interval]
{hline 19}{c +}{hline 60}
{ralign 18:Conventional}{col 19} {c |} {col 22}{res}-.04824{col 33} .02204{col 43}-2.1886{col 52}0.029{col 60}-.091434{col 73}-.005039
{txt}{ralign 18:Bias-corrected}{col 19} {c |} {col 22}{res}-.05647{col 33} .02204{col 43}-2.5620{col 52}0.010{col 60}-.099663{col 73}-.013268
{txt}{ralign 18:Robust}{col 19} {c |} {col 22}{res}-.05647{col 33} .04154{col 43}-1.3595{col 52}0.174{col 60}-.137874{col 73} .024942
{txt}{hline 19}{c BT}{hline 60}
Std. Err. adjusted for clusters in reci_id
Scale regularization: 0
{p}
number of observations (_N)  was 0,
now 1
{p_end}
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(note: file tempfile.dta not found)
file tempfile.dta saved
file outputs/generated/Table_F2.dta saved

{com}. 
.         * p=3, regularization term=0
.         rdrobust mshare pcs, p(3) c(`cutoff') vce(cluster reci_id) scaleregul(0)
{res}
Sharp RD estimates using local polynomial regression.

{txt}{ralign 18: Cutoff c = .888602614402771}{col 19} {c |} {col 21}Left of {res}c{col 33}{txt}Right of {res}c{col 55}{txt}Number of obs = {res}     33042
{txt}{hline 19}{c +}{hline 22}{col 55}BW type       = {res}{ralign 10:mserd}
{txt}{ralign 18:Number of obs}{col 19} {c |} {col 21}{res}    29430{col 34}     3612{col 55}{txt}Kernel        = {res}{ralign 10:Triangular}
{txt}{ralign 18:Eff. Number of obs}{col 19} {c |} {col 21}{res}     2395{col 34}     2440{col 55}{txt}VCE method    = {res}{ralign 10:Cluster}
{txt}{ralign 18:Order est. (p)}{col 19} {c |} {col 21}{res}        3{col 34}        3
{txt}{ralign 18:Order bias (q)}{col 19} {c |} {col 21}{res}        4{col 34}        4
{txt}{ralign 18:BW est. (h)}{col 19} {c |} {col 21}{res}    0.076{col 34}    0.076
{txt}{ralign 18:BW bias (b)}{col 19} {c |} {col 21}{res}    0.076{col 34}    0.076
{txt}{ralign 18:rho (h/b)}{col 19} {c |} {col 21}{res}    1.006{col 34}    1.006
{txt}{ralign 18:Number of clusters}{col 19} {c |} {col 21}{res}     1197{col 34}     1002

Outcome: mshare. Running variable: pcs.
{txt}{hline 19}{c TT}{hline 60}
{ralign 18:Method}{col 19} {c |} {col 24}Coef.{col 33}Std. Err.{col 46}z{col 52}P>|z|{col 61}[95% Conf. Interval]
{hline 19}{c +}{hline 60}
{ralign 18:Conventional}{col 19} {c |} {col 22}{res}-.01862{col 33} .03081{col 43}-0.6041{col 52}0.546{col 60}-.079009{col 73} .041777
{txt}{ralign 18:Robust}{col 19} {c |} {col 22}{res}    -{col 33}    -{col 43}-0.2021{col 52}0.840{col 60}-.080081{col 73} .065112
{txt}{hline 19}{c BT}{hline 60}
Std. Err. adjusted for clusters in reci_id
Scale regularization: 0

{com}.         rdrobust_export mshare pcs, ///
>                 c("`cutoff'") apprep("append") file("outputs/generated/Table_F2") ///
>                 colstring("Cutoff `cutoff' - Time 10 20 2019 19 40 57 - p=3 - regterm=0") ///
>                 vce(cluster reci_id) p(3) reguterm("no")
{res}
Sharp RD estimates using local polynomial regression.

{txt}{ralign 18: Cutoff c = .888602614402771}{col 19} {c |} {col 21}Left of {res}c{col 33}{txt}Right of {res}c{col 55}{txt}Number of obs = {res}     33042
{txt}{hline 19}{c +}{hline 22}{col 55}BW type       = {res}{ralign 10:mserd}
{txt}{ralign 18:Number of obs}{col 19} {c |} {col 21}{res}    29430{col 34}     3612{col 55}{txt}Kernel        = {res}{ralign 10:Triangular}
{txt}{ralign 18:Eff. Number of obs}{col 19} {c |} {col 21}{res}     2395{col 34}     2440{col 55}{txt}VCE method    = {res}{ralign 10:Cluster}
{txt}{ralign 18:Order est. (p)}{col 19} {c |} {col 21}{res}        3{col 34}        3
{txt}{ralign 18:Order bias (q)}{col 19} {c |} {col 21}{res}        4{col 34}        4
{txt}{ralign 18:BW est. (h)}{col 19} {c |} {col 21}{res}    0.076{col 34}    0.076
{txt}{ralign 18:BW bias (b)}{col 19} {c |} {col 21}{res}    0.076{col 34}    0.076
{txt}{ralign 18:rho (h/b)}{col 19} {c |} {col 21}{res}    1.006{col 34}    1.006
{txt}{ralign 18:Number of clusters}{col 19} {c |} {col 21}{res}     1197{col 34}     1002

Outcome: mshare. Running variable: pcs.
{txt}{hline 19}{c TT}{hline 60}
{ralign 18:Method}{col 19} {c |} {col 24}Coef.{col 33}Std. Err.{col 46}z{col 52}P>|z|{col 61}[95% Conf. Interval]
{hline 19}{c +}{hline 60}
{ralign 18:Conventional}{col 19} {c |} {col 22}{res}-.01862{col 33} .03081{col 43}-0.6041{col 52}0.546{col 60}-.079009{col 73} .041777
{txt}{ralign 18:Bias-corrected}{col 19} {c |} {col 22}{res}-.00748{col 33} .03081{col 43}-0.2429{col 52}0.808{col 60}-.067877{col 73} .052909
{txt}{ralign 18:Robust}{col 19} {c |} {col 22}{res}-.00748{col 33} .03704{col 43}-0.2021{col 52}0.840{col 60}-.080081{col 73} .065112
{txt}{hline 19}{c BT}{hline 60}
Std. Err. adjusted for clusters in reci_id
Scale regularization: 0
{p}
number of observations (_N)  was 0,
now 1
{p_end}
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(note: file tempfile.dta not found)
file tempfile.dta saved
file outputs/generated/Table_F2.dta saved

{com}. 
.         * Cutoff 1, Table 1. Robustness checks (different poly. degrees, regu. term, etc.)
.         *---------------------------------------------------------------------------------
.         use "data/outputs/computo_verificadortrepdate_nomissings.dta", clear
{txt}
{com}. 
.         gen row = 3
{txt}
{com}.         merge m:1 row using "data/outputs/RD_sortings_mediandraw.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}          33,046
{txt}{col 9}from master{col 30}{res}          33,044{txt}  (_merge==1)
{col 9}from using{col 30}{res}               2{txt}  (_merge==2)

{col 5}matched{col 30}{res}               0{txt}  (_merge==3)
{col 5}{hline 41}

{com}.         drop if _merge == 2
{txt}(2 observations deleted)

{com}.         drop _merge row
{txt}
{com}. 
.         merge 1:1 NumMesa sorting using "data/outputs/randomdraws_rd.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}          99,132
{txt}{col 9}from master{col 30}{res}          33,044{txt}  (_merge==1)
{col 9}from using{col 30}{res}          66,088{txt}  (_merge==2)

{col 5}matched{col 30}{res}               0{txt}  (_merge==3)
{col 5}{hline 41}

{com}.         drop if _merge == 2
{txt}(66,088 observations deleted)

{com}.         drop _merge sorting
{txt}
{com}. 
.         keep Pais-Nulos trep_date_verificador random_draw
{txt}
{com}. 
.         * Measures that DO USE Blancos and Nulos (sorted)
.         gen total_so = CC + FPV + MTS + UCS + MAS + F + PDC + MNR + PANBOL + Blancos + Nulos
{txt}
{com}.         *---*
.         gen mshare_so = MAS / total_so
{txt}(2 missing values generated)

{com}.         gen cshare_so = CC / total_so
{txt}(2 missing values generated)

{com}.         sort trep_date_verificador random_draw
{txt}
{com}.         gen cumsumtotal_so = sum(total_so)
{txt}
{com}.         *---*
.         egen maxcumsumtotal_so = max(cumsumtotal_so)
{txt}
{com}.         gen pcs_so = cumsumtotal_so / maxcumsumtotal_so
{txt}
{com}.         drop cumsumtotal_so maxcumsumtotal_so
{txt}
{com}. 
.         * Extracting the date associated to the pcs cutoff of 0.95
.         sum pcs if pcs >= 0.95

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}pcs_so {c |}{res}      1,663    .9752187    .0143343   .9500076          1
{txt}
{com}.         local cutoff=r(min)
{txt}
{com}. 
.         gen hour = hh(trep_date) if pcs == `cutoff'
{txt}(33,043 missing values generated)

{com}.         gen min = mm(trep_date) if pcs == `cutoff'
{txt}(33,043 missing values generated)

{com}.         gen secs = ss(trep_date) if pcs == `cutoff'
{txt}(33,043 missing values generated)

{com}.         gen date = dofc(trep_date) if pcs == `cutoff'
{txt}(33,043 missing values generated)

{com}.         format date %td
{txt}
{com}.         gen day = day(date) if pcs == `cutoff'
{txt}(33,043 missing values generated)

{com}.         gen month = month(date) if pcs == `cutoff'
{txt}(33,043 missing values generated)

{com}.         gen year = year(date) if pcs == `cutoff'
{txt}(33,043 missing values generated)

{com}. 
.         global date ""
{txt}
{com}.         foreach g in month day year hour min secs {c -(}
{txt}  2{com}.                 quietly sum `g'
{txt}  3{com}.                 local loc_`g' = r(mean)
{txt}  4{com}.                 drop `g'
{txt}  5{com}.                 global date "$date `loc_`g''"
{txt}  6{com}.         {c )-}
{txt}
{com}.         drop date
{txt}
{com}. 
.         * Generating a variable to cluster at the precinct level
.         egen reci_id = group(Pais Dep Prov Muni Loc Reci)
{txt}
{com}.                 /* Note, in constructing the data set we made a correction
>                 such that recinto names are unique within localities. */
. 
.         * p=1, regularization term=1 (default)
.         rdrobust mshare pcs, c(0.95) vce(cluster reci_id)
{res}
Sharp RD estimates using local polynomial regression.

{txt}{ralign 18: Cutoff c = .95}{col 19} {c |} {col 21}Left of {res}c{col 33}{txt}Right of {res}c{col 55}{txt}Number of obs = {res}     33042
{txt}{hline 19}{c +}{hline 22}{col 55}BW type       = {res}{ralign 10:mserd}
{txt}{ralign 18:Number of obs}{col 19} {c |} {col 21}{res}    31379{col 34}     1663{col 55}{txt}Kernel        = {res}{ralign 10:Triangular}
{txt}{ralign 18:Eff. Number of obs}{col 19} {c |} {col 21}{res}     1325{col 34}     1379{col 55}{txt}VCE method    = {res}{ralign 10:Cluster}
{txt}{ralign 18:Order est. (p)}{col 19} {c |} {col 21}{res}        1{col 34}        1
{txt}{ralign 18:Order bias (q)}{col 19} {c |} {col 21}{res}        2{col 34}        2
{txt}{ralign 18:BW est. (h)}{col 19} {c |} {col 21}{res}    0.041{col 34}    0.041
{txt}{ralign 18:BW bias (b)}{col 19} {c |} {col 21}{res}    0.047{col 34}    0.047
{txt}{ralign 18:rho (h/b)}{col 19} {c |} {col 21}{res}    0.890{col 34}    0.890
{txt}{ralign 18:Number of clusters}{col 19} {c |} {col 21}{res}      700{col 34}      657

Outcome: mshare. Running variable: pcs.
{txt}{hline 19}{c TT}{hline 60}
{ralign 18:Method}{col 19} {c |} {col 24}Coef.{col 33}Std. Err.{col 46}z{col 52}P>|z|{col 61}[95% Conf. Interval]
{hline 19}{c +}{hline 60}
{ralign 18:Conventional}{col 19} {c |} {col 22}{res} .03095{col 33} .02343{col 43}1.3210{col 52}0.187{col 60}-.014971{col 73} .076873
{txt}{ralign 18:Robust}{col 19} {c |} {col 22}{res}    -{col 33}    -{col 43}0.7455{col 52}0.456{col 60}-.035771{col 73} .079688
{txt}{hline 19}{c BT}{hline 60}
Std. Err. adjusted for clusters in reci_id

{com}.         rdrobust_export mshare pcs, ///
>                 c("0.95") apprep("append") file("outputs/generated/Table_F2") ///
>                 colstring("Cutoff 0.95 - Time $date - p=1 - regterm=1") ///
>                 vce(cluster reci_id)
{res}
Sharp RD estimates using local polynomial regression.

{txt}{ralign 18: Cutoff c = .95}{col 19} {c |} {col 21}Left of {res}c{col 33}{txt}Right of {res}c{col 55}{txt}Number of obs = {res}     33042
{txt}{hline 19}{c +}{hline 22}{col 55}BW type       = {res}{ralign 10:mserd}
{txt}{ralign 18:Number of obs}{col 19} {c |} {col 21}{res}    31379{col 34}     1663{col 55}{txt}Kernel        = {res}{ralign 10:Triangular}
{txt}{ralign 18:Eff. Number of obs}{col 19} {c |} {col 21}{res}     1325{col 34}     1379{col 55}{txt}VCE method    = {res}{ralign 10:Cluster}
{txt}{ralign 18:Order est. (p)}{col 19} {c |} {col 21}{res}        1{col 34}        1
{txt}{ralign 18:Order bias (q)}{col 19} {c |} {col 21}{res}        2{col 34}        2
{txt}{ralign 18:BW est. (h)}{col 19} {c |} {col 21}{res}    0.041{col 34}    0.041
{txt}{ralign 18:BW bias (b)}{col 19} {c |} {col 21}{res}    0.047{col 34}    0.047
{txt}{ralign 18:rho (h/b)}{col 19} {c |} {col 21}{res}    0.890{col 34}    0.890
{txt}{ralign 18:Number of clusters}{col 19} {c |} {col 21}{res}      700{col 34}      657

Outcome: mshare. Running variable: pcs.
{txt}{hline 19}{c TT}{hline 60}
{ralign 18:Method}{col 19} {c |} {col 24}Coef.{col 33}Std. Err.{col 46}z{col 52}P>|z|{col 61}[95% Conf. Interval]
{hline 19}{c +}{hline 60}
{ralign 18:Conventional}{col 19} {c |} {col 22}{res} .03095{col 33} .02343{col 43}1.3210{col 52}0.187{col 60}-.014971{col 73} .076873
{txt}{ralign 18:Bias-corrected}{col 19} {c |} {col 22}{res} .02196{col 33} .02343{col 43}0.9372{col 52}0.349{col 60}-.023963{col 73} .067881
{txt}{ralign 18:Robust}{col 19} {c |} {col 22}{res} .02196{col 33} .02945{col 43}0.7455{col 52}0.456{col 60}-.035771{col 73} .079688
{txt}{hline 19}{c BT}{hline 60}
Std. Err. adjusted for clusters in reci_id
{p}
number of observations (_N)  was 0,
now 1
{p_end}
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(note: file tempfile.dta not found)
file tempfile.dta saved
{p 0 7 2}
(note: variable
colstring was 
str68, now str71 to accommodate using data's values)
{p_end}
file outputs/generated/Table_F2.dta saved

{com}. 
.         * p=2, regularization term=1 (default)
.         rdrobust mshare pcs, c(0.95) vce(cluster reci_id) p(2)
{res}
Sharp RD estimates using local polynomial regression.

{txt}{ralign 18: Cutoff c = .95}{col 19} {c |} {col 21}Left of {res}c{col 33}{txt}Right of {res}c{col 55}{txt}Number of obs = {res}     33042
{txt}{hline 19}{c +}{hline 22}{col 55}BW type       = {res}{ralign 10:mserd}
{txt}{ralign 18:Number of obs}{col 19} {c |} {col 21}{res}    31379{col 34}     1663{col 55}{txt}Kernel        = {res}{ralign 10:Triangular}
{txt}{ralign 18:Eff. Number of obs}{col 19} {c |} {col 21}{res}     1538{col 34}     1602{col 55}{txt}VCE method    = {res}{ralign 10:Cluster}
{txt}{ralign 18:Order est. (p)}{col 19} {c |} {col 21}{res}        2{col 34}        2
{txt}{ralign 18:Order bias (q)}{col 19} {c |} {col 21}{res}        3{col 34}        3
{txt}{ralign 18:BW est. (h)}{col 19} {c |} {col 21}{res}    0.048{col 34}    0.048
{txt}{ralign 18:BW bias (b)}{col 19} {c |} {col 21}{res}    0.053{col 34}    0.053
{txt}{ralign 18:rho (h/b)}{col 19} {c |} {col 21}{res}    0.905{col 34}    0.905
{txt}{ralign 18:Number of clusters}{col 19} {c |} {col 21}{res}      768{col 34}      684

Outcome: mshare. Running variable: pcs.
{txt}{hline 19}{c TT}{hline 60}
{ralign 18:Method}{col 19} {c |} {col 24}Coef.{col 33}Std. Err.{col 46}z{col 52}P>|z|{col 61}[95% Conf. Interval]
{hline 19}{c +}{hline 60}
{ralign 18:Conventional}{col 19} {c |} {col 22}{res} .02257{col 33} .02949{col 43}0.7655{col 52}0.444{col 60}-.035224{col 73} .080373
{txt}{ralign 18:Robust}{col 19} {c |} {col 22}{res}    -{col 33}    -{col 43}0.1042{col 52}0.917{col 60}-.066275{col 73} .073714
{txt}{hline 19}{c BT}{hline 60}
Std. Err. adjusted for clusters in reci_id

{com}.         rdrobust_export mshare pcs, ///
>                 c("0.95") apprep("append") file("outputs/generated/Table_F2") ///
>                 colstring("Cutoff 0.95 - Time $date - p=2 - regterm=1") ///
>                 vce(cluster reci_id) p(2)
{res}
Sharp RD estimates using local polynomial regression.

{txt}{ralign 18: Cutoff c = .95}{col 19} {c |} {col 21}Left of {res}c{col 33}{txt}Right of {res}c{col 55}{txt}Number of obs = {res}     33042
{txt}{hline 19}{c +}{hline 22}{col 55}BW type       = {res}{ralign 10:mserd}
{txt}{ralign 18:Number of obs}{col 19} {c |} {col 21}{res}    31379{col 34}     1663{col 55}{txt}Kernel        = {res}{ralign 10:Triangular}
{txt}{ralign 18:Eff. Number of obs}{col 19} {c |} {col 21}{res}     1538{col 34}     1602{col 55}{txt}VCE method    = {res}{ralign 10:Cluster}
{txt}{ralign 18:Order est. (p)}{col 19} {c |} {col 21}{res}        2{col 34}        2
{txt}{ralign 18:Order bias (q)}{col 19} {c |} {col 21}{res}        3{col 34}        3
{txt}{ralign 18:BW est. (h)}{col 19} {c |} {col 21}{res}    0.048{col 34}    0.048
{txt}{ralign 18:BW bias (b)}{col 19} {c |} {col 21}{res}    0.053{col 34}    0.053
{txt}{ralign 18:rho (h/b)}{col 19} {c |} {col 21}{res}    0.905{col 34}    0.905
{txt}{ralign 18:Number of clusters}{col 19} {c |} {col 21}{res}      768{col 34}      684

Outcome: mshare. Running variable: pcs.
{txt}{hline 19}{c TT}{hline 60}
{ralign 18:Method}{col 19} {c |} {col 24}Coef.{col 33}Std. Err.{col 46}z{col 52}P>|z|{col 61}[95% Conf. Interval]
{hline 19}{c +}{hline 60}
{ralign 18:Conventional}{col 19} {c |} {col 22}{res} .02257{col 33} .02949{col 43}0.7655{col 52}0.444{col 60}-.035224{col 73} .080373
{txt}{ralign 18:Bias-corrected}{col 19} {c |} {col 22}{res} .00372{col 33} .02949{col 43}0.1261{col 52}0.900{col 60}-.054079{col 73} .061518
{txt}{ralign 18:Robust}{col 19} {c |} {col 22}{res} .00372{col 33} .03571{col 43}0.1042{col 52}0.917{col 60}-.066275{col 73} .073714
{txt}{hline 19}{c BT}{hline 60}
Std. Err. adjusted for clusters in reci_id
{p}
number of observations (_N)  was 0,
now 1
{p_end}
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(note: file tempfile.dta not found)
file tempfile.dta saved
file outputs/generated/Table_F2.dta saved

{com}. 
.         * p=2, regularization term=1 (default)
.         rdrobust mshare pcs, c(0.95) vce(cluster reci_id) p(3)
{res}
Sharp RD estimates using local polynomial regression.

{txt}{ralign 18: Cutoff c = .95}{col 19} {c |} {col 21}Left of {res}c{col 33}{txt}Right of {res}c{col 55}{txt}Number of obs = {res}     33042
{txt}{hline 19}{c +}{hline 22}{col 55}BW type       = {res}{ralign 10:mserd}
{txt}{ralign 18:Number of obs}{col 19} {c |} {col 21}{res}    31379{col 34}     1663{col 55}{txt}Kernel        = {res}{ralign 10:Triangular}
{txt}{ralign 18:Eff. Number of obs}{col 19} {c |} {col 21}{res}     1872{col 34}     1663{col 55}{txt}VCE method    = {res}{ralign 10:Cluster}
{txt}{ralign 18:Order est. (p)}{col 19} {c |} {col 21}{res}        3{col 34}        3
{txt}{ralign 18:Order bias (q)}{col 19} {c |} {col 21}{res}        4{col 34}        4
{txt}{ralign 18:BW est. (h)}{col 19} {c |} {col 21}{res}    0.059{col 34}    0.059
{txt}{ralign 18:BW bias (b)}{col 19} {c |} {col 21}{res}    0.066{col 34}    0.066
{txt}{ralign 18:rho (h/b)}{col 19} {c |} {col 21}{res}    0.890{col 34}    0.890
{txt}{ralign 18:Number of clusters}{col 19} {c |} {col 21}{res}      881{col 34}      684

Outcome: mshare. Running variable: pcs.
{txt}{hline 19}{c TT}{hline 60}
{ralign 18:Method}{col 19} {c |} {col 24}Coef.{col 33}Std. Err.{col 46}z{col 52}P>|z|{col 61}[95% Conf. Interval]
{hline 19}{c +}{hline 60}
{ralign 18:Conventional}{col 19} {c |} {col 22}{res}  .0063{col 33} .03515{col 43}0.1792{col 52}0.858{col 60}-.062603{col 73} .075201
{txt}{ralign 18:Robust}{col 19} {c |} {col 22}{res}    -{col 33}    -{col 43}-0.7310{col 52}0.465{col 60}-.109595{col 73} .050049
{txt}{hline 19}{c BT}{hline 60}
Std. Err. adjusted for clusters in reci_id

{com}.         rdrobust_export mshare pcs, ///
>                 c("0.95") apprep("append") file("outputs/generated/Table_F2") ///
>                 colstring("Cutoff 0.95 - Time $date - p=3 - regterm=1") ///
>                 vce(cluster reci_id) p(3)
{res}
Sharp RD estimates using local polynomial regression.

{txt}{ralign 18: Cutoff c = .95}{col 19} {c |} {col 21}Left of {res}c{col 33}{txt}Right of {res}c{col 55}{txt}Number of obs = {res}     33042
{txt}{hline 19}{c +}{hline 22}{col 55}BW type       = {res}{ralign 10:mserd}
{txt}{ralign 18:Number of obs}{col 19} {c |} {col 21}{res}    31379{col 34}     1663{col 55}{txt}Kernel        = {res}{ralign 10:Triangular}
{txt}{ralign 18:Eff. Number of obs}{col 19} {c |} {col 21}{res}     1872{col 34}     1663{col 55}{txt}VCE method    = {res}{ralign 10:Cluster}
{txt}{ralign 18:Order est. (p)}{col 19} {c |} {col 21}{res}        3{col 34}        3
{txt}{ralign 18:Order bias (q)}{col 19} {c |} {col 21}{res}        4{col 34}        4
{txt}{ralign 18:BW est. (h)}{col 19} {c |} {col 21}{res}    0.059{col 34}    0.059
{txt}{ralign 18:BW bias (b)}{col 19} {c |} {col 21}{res}    0.066{col 34}    0.066
{txt}{ralign 18:rho (h/b)}{col 19} {c |} {col 21}{res}    0.890{col 34}    0.890
{txt}{ralign 18:Number of clusters}{col 19} {c |} {col 21}{res}      881{col 34}      684

Outcome: mshare. Running variable: pcs.
{txt}{hline 19}{c TT}{hline 60}
{ralign 18:Method}{col 19} {c |} {col 24}Coef.{col 33}Std. Err.{col 46}z{col 52}P>|z|{col 61}[95% Conf. Interval]
{hline 19}{c +}{hline 60}
{ralign 18:Conventional}{col 19} {c |} {col 22}{res}  .0063{col 33} .03515{col 43}0.1792{col 52}0.858{col 60}-.062603{col 73} .075201
{txt}{ralign 18:Bias-corrected}{col 19} {c |} {col 22}{res}-.02977{col 33} .03515{col 43}-0.8469{col 52}0.397{col 60}-.098675{col 73} .039129
{txt}{ralign 18:Robust}{col 19} {c |} {col 22}{res}-.02977{col 33} .04073{col 43}-0.7310{col 52}0.465{col 60}-.109595{col 73} .050049
{txt}{hline 19}{c BT}{hline 60}
Std. Err. adjusted for clusters in reci_id
{p}
number of observations (_N)  was 0,
now 1
{p_end}
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(note: file tempfile.dta not found)
file tempfile.dta saved
file outputs/generated/Table_F2.dta saved

{com}. 
.         *---*
.         * p=1, regularization term=0
.         rdrobust mshare pcs, c(0.95) vce(cluster reci_id) scaleregul(0)
{res}
Sharp RD estimates using local polynomial regression.

{txt}{ralign 18: Cutoff c = .95}{col 19} {c |} {col 21}Left of {res}c{col 33}{txt}Right of {res}c{col 55}{txt}Number of obs = {res}     33042
{txt}{hline 19}{c +}{hline 22}{col 55}BW type       = {res}{ralign 10:mserd}
{txt}{ralign 18:Number of obs}{col 19} {c |} {col 21}{res}    31379{col 34}     1663{col 55}{txt}Kernel        = {res}{ralign 10:Triangular}
{txt}{ralign 18:Eff. Number of obs}{col 19} {c |} {col 21}{res}     3037{col 34}     1663{col 55}{txt}VCE method    = {res}{ralign 10:Cluster}
{txt}{ralign 18:Order est. (p)}{col 19} {c |} {col 21}{res}        1{col 34}        1
{txt}{ralign 18:Order bias (q)}{col 19} {c |} {col 21}{res}        2{col 34}        2
{txt}{ralign 18:BW est. (h)}{col 19} {c |} {col 21}{res}    0.096{col 34}    0.096
{txt}{ralign 18:BW bias (b)}{col 19} {c |} {col 21}{res}    0.059{col 34}    0.059
{txt}{ralign 18:rho (h/b)}{col 19} {c |} {col 21}{res}    1.616{col 34}    1.616
{txt}{ralign 18:Number of clusters}{col 19} {c |} {col 21}{res}     1117{col 34}      684

Outcome: mshare. Running variable: pcs.
{txt}{hline 19}{c TT}{hline 60}
{ralign 18:Method}{col 19} {c |} {col 24}Coef.{col 33}Std. Err.{col 46}z{col 52}P>|z|{col 61}[95% Conf. Interval]
{hline 19}{c +}{hline 60}
{ralign 18:Conventional}{col 19} {c |} {col 22}{res} .03182{col 33} .01975{col 43}1.6113{col 52}0.107{col 60}-.006886{col 73}  .07053
{txt}{ralign 18:Robust}{col 19} {c |} {col 22}{res}    -{col 33}    -{col 43}1.2328{col 52}0.218{col 60}-.024554{col 73} .107814
{txt}{hline 19}{c BT}{hline 60}
Std. Err. adjusted for clusters in reci_id
Scale regularization: 0

{com}.         rdrobust_export mshare pcs, ///
>                 c("0.95") apprep("append") file("outputs/generated/Table_F2") ///
>                 colstring("Cutoff 0.95 - Time $date - p=1 - regterm=0") ///
>                 vce(cluster reci_id) reguterm("no")
{res}
Sharp RD estimates using local polynomial regression.

{txt}{ralign 18: Cutoff c = .95}{col 19} {c |} {col 21}Left of {res}c{col 33}{txt}Right of {res}c{col 55}{txt}Number of obs = {res}     33042
{txt}{hline 19}{c +}{hline 22}{col 55}BW type       = {res}{ralign 10:mserd}
{txt}{ralign 18:Number of obs}{col 19} {c |} {col 21}{res}    31379{col 34}     1663{col 55}{txt}Kernel        = {res}{ralign 10:Triangular}
{txt}{ralign 18:Eff. Number of obs}{col 19} {c |} {col 21}{res}     3037{col 34}     1663{col 55}{txt}VCE method    = {res}{ralign 10:Cluster}
{txt}{ralign 18:Order est. (p)}{col 19} {c |} {col 21}{res}        1{col 34}        1
{txt}{ralign 18:Order bias (q)}{col 19} {c |} {col 21}{res}        2{col 34}        2
{txt}{ralign 18:BW est. (h)}{col 19} {c |} {col 21}{res}    0.096{col 34}    0.096
{txt}{ralign 18:BW bias (b)}{col 19} {c |} {col 21}{res}    0.059{col 34}    0.059
{txt}{ralign 18:rho (h/b)}{col 19} {c |} {col 21}{res}    1.616{col 34}    1.616
{txt}{ralign 18:Number of clusters}{col 19} {c |} {col 21}{res}     1117{col 34}      684

Outcome: mshare. Running variable: pcs.
{txt}{hline 19}{c TT}{hline 60}
{ralign 18:Method}{col 19} {c |} {col 24}Coef.{col 33}Std. Err.{col 46}z{col 52}P>|z|{col 61}[95% Conf. Interval]
{hline 19}{c +}{hline 60}
{ralign 18:Conventional}{col 19} {c |} {col 22}{res} .03182{col 33} .01975{col 43}1.6113{col 52}0.107{col 60}-.006886{col 73}  .07053
{txt}{ralign 18:Bias-corrected}{col 19} {c |} {col 22}{res} .04163{col 33} .01975{col 43}2.1079{col 52}0.035{col 60} .002923{col 73} .080338
{txt}{ralign 18:Robust}{col 19} {c |} {col 22}{res} .04163{col 33} .03377{col 43}1.2328{col 52}0.218{col 60}-.024554{col 73} .107814
{txt}{hline 19}{c BT}{hline 60}
Std. Err. adjusted for clusters in reci_id
Scale regularization: 0
{p}
number of observations (_N)  was 0,
now 1
{p_end}
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(note: file tempfile.dta not found)
file tempfile.dta saved
file outputs/generated/Table_F2.dta saved

{com}. 
.         * p=2, regularization term=0
.         rdrobust mshare pcs, c(0.95) vce(cluster reci_id) scaleregul(0) p(2)
{res}
Sharp RD estimates using local polynomial regression.

{txt}{ralign 18: Cutoff c = .95}{col 19} {c |} {col 21}Left of {res}c{col 33}{txt}Right of {res}c{col 55}{txt}Number of obs = {res}     33042
{txt}{hline 19}{c +}{hline 22}{col 55}BW type       = {res}{ralign 10:mserd}
{txt}{ralign 18:Number of obs}{col 19} {c |} {col 21}{res}    31379{col 34}     1663{col 55}{txt}Kernel        = {res}{ralign 10:Triangular}
{txt}{ralign 18:Eff. Number of obs}{col 19} {c |} {col 21}{res}     5667{col 34}     1663{col 55}{txt}VCE method    = {res}{ralign 10:Cluster}
{txt}{ralign 18:Order est. (p)}{col 19} {c |} {col 21}{res}        2{col 34}        2
{txt}{ralign 18:Order bias (q)}{col 19} {c |} {col 21}{res}        3{col 34}        3
{txt}{ralign 18:BW est. (h)}{col 19} {c |} {col 21}{res}    0.180{col 34}    0.180
{txt}{ralign 18:BW bias (b)}{col 19} {c |} {col 21}{res}    0.056{col 34}    0.056
{txt}{ralign 18:rho (h/b)}{col 19} {c |} {col 21}{res}    3.204{col 34}    3.204
{txt}{ralign 18:Number of clusters}{col 19} {c |} {col 21}{res}     1860{col 34}      684

Outcome: mshare. Running variable: pcs.
{txt}{hline 19}{c TT}{hline 60}
{ralign 18:Method}{col 19} {c |} {col 24}Coef.{col 33}Std. Err.{col 46}z{col 52}P>|z|{col 61}[95% Conf. Interval]
{hline 19}{c +}{hline 60}
{ralign 18:Conventional}{col 19} {c |} {col 22}{res}-.00075{col 33}  .0238{col 43}-0.0313{col 52}0.975{col 60}-.047392{col 73} .045902
{txt}{ralign 18:Robust}{col 19} {c |} {col 22}{res}    -{col 33}    -{col 43}0.4888{col 52}0.625{col 60}-.523147{col 73} .870749
{txt}{hline 19}{c BT}{hline 60}
Std. Err. adjusted for clusters in reci_id
Scale regularization: 0

{com}.         rdrobust_export mshare pcs, ///
>                 c("0.95") apprep("append") file("outputs/generated/Table_F2") ///
>                 colstring("Cutoff 0.95 - Time $date - p=2 - regterm=0") ///
>                 vce(cluster reci_id) reguterm("no") p(2)
{res}
Sharp RD estimates using local polynomial regression.

{txt}{ralign 18: Cutoff c = .95}{col 19} {c |} {col 21}Left of {res}c{col 33}{txt}Right of {res}c{col 55}{txt}Number of obs = {res}     33042
{txt}{hline 19}{c +}{hline 22}{col 55}BW type       = {res}{ralign 10:mserd}
{txt}{ralign 18:Number of obs}{col 19} {c |} {col 21}{res}    31379{col 34}     1663{col 55}{txt}Kernel        = {res}{ralign 10:Triangular}
{txt}{ralign 18:Eff. Number of obs}{col 19} {c |} {col 21}{res}     5667{col 34}     1663{col 55}{txt}VCE method    = {res}{ralign 10:Cluster}
{txt}{ralign 18:Order est. (p)}{col 19} {c |} {col 21}{res}        2{col 34}        2
{txt}{ralign 18:Order bias (q)}{col 19} {c |} {col 21}{res}        3{col 34}        3
{txt}{ralign 18:BW est. (h)}{col 19} {c |} {col 21}{res}    0.180{col 34}    0.180
{txt}{ralign 18:BW bias (b)}{col 19} {c |} {col 21}{res}    0.056{col 34}    0.056
{txt}{ralign 18:rho (h/b)}{col 19} {c |} {col 21}{res}    3.204{col 34}    3.204
{txt}{ralign 18:Number of clusters}{col 19} {c |} {col 21}{res}     1860{col 34}      684

Outcome: mshare. Running variable: pcs.
{txt}{hline 19}{c TT}{hline 60}
{ralign 18:Method}{col 19} {c |} {col 24}Coef.{col 33}Std. Err.{col 46}z{col 52}P>|z|{col 61}[95% Conf. Interval]
{hline 19}{c +}{hline 60}
{ralign 18:Conventional}{col 19} {c |} {col 22}{res}-.00075{col 33}  .0238{col 43}-0.0313{col 52}0.975{col 60}-.047392{col 73} .045902
{txt}{ralign 18:Bias-corrected}{col 19} {c |} {col 22}{res}  .1738{col 33}  .0238{col 43}7.3026{col 52}0.000{col 60} .127154{col 73} .220448
{txt}{ralign 18:Robust}{col 19} {c |} {col 22}{res}  .1738{col 33} .35559{col 43}0.4888{col 52}0.625{col 60}-.523147{col 73} .870749
{txt}{hline 19}{c BT}{hline 60}
Std. Err. adjusted for clusters in reci_id
Scale regularization: 0
{p}
number of observations (_N)  was 0,
now 1
{p_end}
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(note: file tempfile.dta not found)
file tempfile.dta saved
file outputs/generated/Table_F2.dta saved

{com}. 
.         * p=3, regularization term=0
.         rdrobust mshare pcs, c(0.95) vce(cluster reci_id) scaleregul(0) p(3)
{res}
Sharp RD estimates using local polynomial regression.

{txt}{ralign 18: Cutoff c = .95}{col 19} {c |} {col 21}Left of {res}c{col 33}{txt}Right of {res}c{col 55}{txt}Number of obs = {res}     33042
{txt}{hline 19}{c +}{hline 22}{col 55}BW type       = {res}{ralign 10:mserd}
{txt}{ralign 18:Number of obs}{col 19} {c |} {col 21}{res}    31379{col 34}     1663{col 55}{txt}Kernel        = {res}{ralign 10:Triangular}
{txt}{ralign 18:Eff. Number of obs}{col 19} {c |} {col 21}{res}     2415{col 34}     1663{col 55}{txt}VCE method    = {res}{ralign 10:Cluster}
{txt}{ralign 18:Order est. (p)}{col 19} {c |} {col 21}{res}        3{col 34}        3
{txt}{ralign 18:Order bias (q)}{col 19} {c |} {col 21}{res}        4{col 34}        4
{txt}{ralign 18:BW est. (h)}{col 19} {c |} {col 21}{res}    0.076{col 34}    0.076
{txt}{ralign 18:BW bias (b)}{col 19} {c |} {col 21}{res}    0.098{col 34}    0.098
{txt}{ralign 18:rho (h/b)}{col 19} {c |} {col 21}{res}    0.774{col 34}    0.774
{txt}{ralign 18:Number of clusters}{col 19} {c |} {col 21}{res}     1150{col 34}      684

Outcome: mshare. Running variable: pcs.
{txt}{hline 19}{c TT}{hline 60}
{ralign 18:Method}{col 19} {c |} {col 24}Coef.{col 33}Std. Err.{col 46}z{col 52}P>|z|{col 61}[95% Conf. Interval]
{hline 19}{c +}{hline 60}
{ralign 18:Conventional}{col 19} {c |} {col 22}{res} .00716{col 33} .03336{col 43}0.2147{col 52}0.830{col 60} -.05822{col 73} .072541
{txt}{ralign 18:Robust}{col 19} {c |} {col 22}{res}    -{col 33}    -{col 43}-0.7694{col 52}0.442{col 60}-.102739{col 73} .044815
{txt}{hline 19}{c BT}{hline 60}
Std. Err. adjusted for clusters in reci_id
Scale regularization: 0

{com}.         rdrobust_export mshare pcs, ///
>                 c("0.95") apprep("append") file("outputs/generated/Table_F2") ///
>                 colstring("Cutoff 0.95 - Time $date - p=3 - regterm=0") ///
>                 vce(cluster reci_id) reguterm("no") p(3)
{res}
Sharp RD estimates using local polynomial regression.

{txt}{ralign 18: Cutoff c = .95}{col 19} {c |} {col 21}Left of {res}c{col 33}{txt}Right of {res}c{col 55}{txt}Number of obs = {res}     33042
{txt}{hline 19}{c +}{hline 22}{col 55}BW type       = {res}{ralign 10:mserd}
{txt}{ralign 18:Number of obs}{col 19} {c |} {col 21}{res}    31379{col 34}     1663{col 55}{txt}Kernel        = {res}{ralign 10:Triangular}
{txt}{ralign 18:Eff. Number of obs}{col 19} {c |} {col 21}{res}     2415{col 34}     1663{col 55}{txt}VCE method    = {res}{ralign 10:Cluster}
{txt}{ralign 18:Order est. (p)}{col 19} {c |} {col 21}{res}        3{col 34}        3
{txt}{ralign 18:Order bias (q)}{col 19} {c |} {col 21}{res}        4{col 34}        4
{txt}{ralign 18:BW est. (h)}{col 19} {c |} {col 21}{res}    0.076{col 34}    0.076
{txt}{ralign 18:BW bias (b)}{col 19} {c |} {col 21}{res}    0.098{col 34}    0.098
{txt}{ralign 18:rho (h/b)}{col 19} {c |} {col 21}{res}    0.774{col 34}    0.774
{txt}{ralign 18:Number of clusters}{col 19} {c |} {col 21}{res}     1150{col 34}      684

Outcome: mshare. Running variable: pcs.
{txt}{hline 19}{c TT}{hline 60}
{ralign 18:Method}{col 19} {c |} {col 24}Coef.{col 33}Std. Err.{col 46}z{col 52}P>|z|{col 61}[95% Conf. Interval]
{hline 19}{c +}{hline 60}
{ralign 18:Conventional}{col 19} {c |} {col 22}{res} .00716{col 33} .03336{col 43}0.2147{col 52}0.830{col 60} -.05822{col 73} .072541
{txt}{ralign 18:Bias-corrected}{col 19} {c |} {col 22}{res}-.02896{col 33} .03336{col 43}-0.8682{col 52}0.385{col 60}-.094343{col 73} .036419
{txt}{ralign 18:Robust}{col 19} {c |} {col 22}{res}-.02896{col 33} .03764{col 43}-0.7694{col 52}0.442{col 60}-.102739{col 73} .044815
{txt}{hline 19}{c BT}{hline 60}
Std. Err. adjusted for clusters in reci_id
Scale regularization: 0
{p}
number of observations (_N)  was 0,
now 1
{p_end}
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 missing value generated)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(note: file tempfile.dta not found)
file tempfile.dta saved
file outputs/generated/Table_F2.dta saved

{com}. 
.         * Formatting the Table
.         *---------------------
.         use "outputs/generated/Table_F2.dta", clear
{txt}
{com}. 
.         drop obs band_r conv_*
{txt}
{com}. 
.         format obs_l obs_r %12.0fc
{txt}
{com}. 
.         foreach x of varlist estim - rob_ci_high {c -(}
{txt}  2{com}.                 myround `x', decimals(3)
{txt}  3{com}.         {c )-}
{txt}temp_str generated as {res:str12}
temp_str was forced to string; some loss of information
(0 real changes made)
(0 real changes made)
{res}variables created as string: 
{txt}{col 1}temp_str1{col 12}temp_str2
(5 real changes made)
variable {bf}temp_str1{sf} was {bf}{res}str1{sf}{txt} now {bf}{res}str2{sf}
{txt}(7 real changes made)
(0 real changes made)
var_first_tpositions: all characters numeric; {res}replaced {txt}as {res}byte
{txt}var_tthpos: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(9 real changes made)
(0 real changes made)
var_first_tpositions was {res:byte} now {res:str2}
variable {bf}var_first_tpositions{sf} was {bf}{res}str2{sf}{txt} now {bf}{res}str3{sf}
{txt}(12 real changes made)
(4 real changes made)
{res}{txt}(0 real changes made)
temp_str generated as {res:str11}
temp_str was forced to string; some loss of information
(0 real changes made)
(0 real changes made)
{res}variables created as string: 
{txt}{col 1}temp_str1{col 12}temp_str2
(12 real changes made)
(0 real changes made)
(0 real changes made)
var_first_tpositions: all characters numeric; {res}replaced {txt}as {res}int
{txt}var_tthpos: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(4 real changes made)
(0 real changes made)
var_first_tpositions was {res:int} now {res:str3}
(10 real changes made)
{res}{txt}(0 real changes made)
temp_str generated as {res:str11}
temp_str was forced to string; some loss of information
(0 real changes made)
(0 real changes made)
{res}variables created as string: 
{txt}{col 1}temp_str1{col 12}temp_str2
(12 real changes made)
(0 real changes made)
(0 real changes made)
var_first_tpositions: all characters numeric; {res}replaced {txt}as {res}int
{txt}var_tthpos: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(7 real changes made)
(0 real changes made)
var_first_tpositions was {res:int} now {res:str3}
(0 real changes made)
{res}{txt}(0 real changes made)
temp_str generated as {res:str12}
temp_str was forced to string; some loss of information
(0 real changes made)
(0 real changes made)
{res}variables created as string: 
{txt}{col 1}temp_str1{col 12}temp_str2
(0 real changes made)
variable {bf}temp_str1{sf} was {bf}{res}str1{sf}{txt} now {bf}{res}str2{sf}
{txt}(12 real changes made)
(0 real changes made)
var_first_tpositions: all characters numeric; {res}replaced {txt}as {res}int
{txt}var_tthpos: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(8 real changes made)
(0 real changes made)
var_first_tpositions was {res:int} now {res:str3}
(7 real changes made)
{res}{txt}(0 real changes made)
temp_str generated as {res:str11}
temp_str was forced to string; some loss of information
(0 real changes made)
(0 real changes made)
{res}variables created as string: 
{txt}{col 1}temp_str1{col 12}temp_str2
(12 real changes made)
(0 real changes made)
(0 real changes made)
var_first_tpositions: all characters numeric; {res}replaced {txt}as {res}int
{txt}var_tthpos: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(9 real changes made)
(0 real changes made)
var_first_tpositions was {res:int} now {res:str3}
(10 real changes made)
{res}{txt}(0 real changes made)

{com}.         tostring obs_l obs_r, force replace format(%12.0fc)
{txt}obs_l was {res:float} now {res:str5}
obs_l was forced to string; some loss of information
obs_r was {res:float} now {res:str5}
obs_r was forced to string; some loss of information

{com}. 
.         gen rob_ci = "[" + rob_ci_low + ", " + rob_ci_high + "]"
{txt}
{com}.         drop rob_ci_low rob_ci_high
{txt}
{com}. 
.         split colstring, p("-")
{res}variables created as string: 
{txt}{col 1}colstring1{col 13}colstring2{col 25}colstring3{col 37}colstring4

{com}.         drop colstring
{txt}
{com}. 
.         rename colstring2 time
{res}{txt}
{com}.         replace time = subinstr(time, "Time ", "", .)
{txt}(12 real changes made)

{com}.         split time, p(" ")
{res}variables created as string: 
{txt}{col 1}time1{col 8}time2{col 15}time3{col 22}time4{col 29}time5{col 36}time6

{com}.         split time6, p(".")
{res}variables created as string: 
{txt}{col 1}time61{col 9}time62

{com}.         drop time
{txt}
{com}.         replace time5 = "0" + time5 if length(time5) == 1
{txt}(6 real changes made)

{com}.         gen time = time1 + "/" + time2 + "/" + time3 + " " + time4 + ":" + ///
>                 time5 + ":" + time61
{txt}
{com}.         drop time1 time2 time3 time4 time5 time6*
{txt}
{com}. 
.         rename colstring1 cutoff
{res}{txt}
{com}.         replace cutoff=subinstr(cutoff,"Cutoff","",.)
{txt}(12 real changes made)

{com}.         destring cutoff, replace
{txt}cutoff: all characters numeric; {res}replaced {txt}as {res}double
{txt}
{com}.         myround cutoff, decimals(3)
{txt}temp_str generated as {res:str11}
temp_str was forced to string; some loss of information
(0 real changes made)
(0 real changes made)
{res}variables created as string: 
{txt}{col 1}temp_str1{col 12}temp_str2
(12 real changes made)
(0 real changes made)
(6 real changes made)
(6 real changes made)
var_first_tpositions: all characters numeric; {res}replaced {txt}as {res}int
{txt}var_tthpos: all characters numeric; {res}replaced {txt}as {res}byte
{txt}(6 real changes made)
(0 real changes made)
var_first_tpositions was {res:int} now {res:str3}
(0 real changes made)
{res}{txt}(0 real changes made)

{com}. 
.         rename colstring3 degpoly
{res}{txt}
{com}.         replace degpoly = subinstr(degpoly, "p=", "", .)
{txt}(12 real changes made)

{com}. 
.         rename colstring4 reguterm
{res}{txt}
{com}.         replace reguterm = subinstr(reguterm, "regterm=", "", .)
{txt}(12 real changes made)

{com}. 
.         gen t2 = _n
{txt}
{com}.         gen t = 1 if time == "10/20/2019 20:03:59"
{txt}(6 missing values generated)

{com}.         replace t = 2 if time == "10/20/2019 19:40:57"
{txt}(6 real changes made)

{com}.         sort t t2
{txt}
{com}.         drop t t2
{txt}
{com}. 
.         order cutoff time reguterm degpoly estim band_l rob_pv rob_ci ///
>                 obs_l obs_r
{txt}
{com}.         egen c = concat(cutoff time reguterm degpoly estim band_l rob_pv ///
>                 rob_ci obs_l obs_r), punct(" & ")
{txt}
{com}.         keep c
{txt}
{com}.         replace c = c + " \\"
{txt}(12 real changes made)

{com}. 
.         gen t = _n
{txt}
{com}.         set obs 13
{txt}{p}
number of observations (_N)  was 12,
now 13
{p_end}

{com}. 
.         replace c = "\hline" if c == ""
{txt}(1 real change made)

{com}.         replace t = 6.5 if _n == 13
{txt}(1 real change made)

{com}.         sort t
{txt}
{com}.         drop t
{txt}
{com}. 
.         outsheet using "outputs/generated/Table_F2.tex", replace noname ///
>                 noquote nolabel
{txt}(note: file outputs/generated/Table_F2.tex not found)

{com}.         erase "outputs/generated/Table_F2.dta"
{txt}
{com}. 
. *------------------------------------------------------------------------------*
. timer off 2
{txt}
{com}. timer list 2
{res}   2:      3.24 /        1 =       3.2370
{txt}
{com}. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}E:\Github\Bolivia\00_replication_files\log-files/3_Table_F2.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}25 Jan 2022, 22:40:07
{txt}{.-}
{smcl}
{txt}{sf}{ul off}